/*
 * @作者: kerwin
 * @公众号: 大前端私房菜
 */
// import React from 'react'
import store from '../redux/store'

import {useHistory,withRouter} from 'react-router-dom'
// import { DatePicker, Button} from 'antd'; pc
// import { SearchOutlined } from '@ant-design/icons'; pc
export default function Cinemas() {
    const history  =useHistory()

    const cityRouter = () => {
        //1 -动态路由传参
        history.push(`/SelectCity`)
    }
    return (
        <div>
            <div style={{height: '50px', margin: '10px'}} onClick={cityRouter}>
            city: {store.getState().CityReducer.cityName}

            </div>
            cinemas 11
            {/* <DatePicker /> */}
            {/* <Button type="primary">Button</Button>
            <Button type="primary" icon={<SearchOutlined />}>
        Search
      </Button> */}
        </div>
    )
}
